<?php #coding: utf-8 æ ø å ?>
<?php

	$i = new individ();
	$i->find_level($stamdata['id']);

	$l = $this->uri->segment(7,0);

	if($l == "level"){ //hvis man har bedt om at ses stats for et tidligere level
		$level = $this->uri->segment(8,0);
	}else{ //vises stats for det nuværende level
		$level = $i->level;
		$level = 7;
	}

	$data['stat_temp_vis'] = $this->karakterark_model->stats($stamdata['id'], "temp", $level);
	$data['stat_pot_vis'] = $this->karakterark_model->stats($stamdata['id'], "pot", $level);
	echo $data['level'] = $level;
	$this->load->view('karakterark/stats_tabel', $data);

	echo "<h3 class='rubrik'>Samtlige stats</h3>";

	$counter = $i->level;

	while($counter > -1){
		echo anchor("almanak/side/".$stamdata['id']."/stats/level/".$counter, "Level ".$counter, "class='rubrik'");
		echo br();
		$counter = $counter - 1;
	}

?>

	

